package com.mlizhi.utils;

public class Constants {

	// 在setting的未登录时候，点击未登录的标志
	public static final int SPEC_LOGIN_REQUEST_CODE = 0x010;
	public static final int SPEC_LOGIN_RESULT_CODE = 0x011;
	
	// 在检测页面的标志
	public static final int SPEC_DETECT_REQUEST_CODE = 0x010;
	public static final int SPEC_DETECT_RESULT_CODE = 0x011;

	// 进入LoginActivity的来源标志
	public static final String LOGIN_FROM_FLAG = "login_from_flag";

	// 类型
	public static final String BODY_PART_TYPE = "body_part_type";

	public static final String BODY_PART_COMPARE_LABEL = "body_part_compare_label";
	public static final String BODY_PART_COMPARE_VALUE = "body_part_compare_value";
	public static final String BODY_PART_COMPARE_PROCESS = "body_part_compare_process";
	public static final String BODY_PART_WATER_VALUE = "body_part_water_value";
	public static final String BODY_PART_CONDITION_VALUE = "body_part_condition_value";
	// 脸部
	public static final int BODY_PART_FACE = 0x0011;
	// 眼窝
	public static final int BODY_PART_EYE = 0x0012;
	// 手部
	public static final int BODY_PART_HAND = 0x0013;
	// 脖子
	public static final int BODY_PART_NECK = 0x0014;
	// 护理前后：前
	public static final int NURSER_TYPE_PRE = 0X0015;

	// 脸部正常区间
	public static final float BODY_PART_FACE_MORMAL_MIN = 34f;
	public static final float BODY_PART_FACE_MORMAL_MAX = 40f;
	// 眼窝正常区间
	public static final float BODY_PART_EYE_MORMAL_MIN = 36f;
	public static final float BODY_PART_EYE_MORMAL_MAX = 44f;
	// 手部正常区间
	public static final float BODY_PART_HAND_MORMAL_MIN = 30f;
	public static final float BODY_PART_HAND_MORMAL_MAX = 38f;
	// 脖子正常区间
	public static final float BODY_PART_NECK_MORMAL_MIN = 35f;
	public static final float BODY_PART_NECK_MORMAL_MAX = 44f;
	// 部位的开始和结束标志
	public static final float BODY_PART_MIN = 20f;
	public static final float BODY_PART_MAX = 60f;

	// 护理前后：前
	public static final int NURSER_TYPE_PRE_MORMAL_MIN = 0X0015;
	public static final int NURSER_TYPE_PRE_MORMAL_MAX = 0X0016;

	// 护理前后：后
	public static final int NURSER_TYPE_POST = 0X0016;
	// 检测类型：水
	public static final int DETECT_TYPE_WATER = 0X0017;

	// 传递参数的key
	public static final String MSG_BODY_PART = "msg4bodyPart";
	public static final String MSG_TIME_TYPE = "msg4timeType";

	// 今日
	public static final int BODY_PART_CURRENT_DAY = 0x0018;
	// 本周
	public static final int BODY_PART_CURRENT_WEEK = 0x0019;
	// 本月
	public static final int BODY_PART_CURRENT_MONTH = 0x0020;

	public static final int BODY_PART_ARROW_LEFT = 0;
	public static final int BODY_PART_ARROW_RIGHT = 1;

	//进入设置list页面，同时退出成功
	public static final int SPEC_SETTING_LIST_REQUEST_CODE = 0x041;
	public static final int SPEC_SETTING_LIST_RESP_CODE = 0x042;
	//设置头像的请求常量
	public static final int SPEC_SETTING_MINE_REQUEST_CODE = 0x031;
	//设置不用保存的生日请求常量
	public static final int REQUEST_NO_NET_REQUEST_CODE = 0x032;
	//是否同步到服务器的标志
	public static final String NO_SAVE_FLAG = "no_net_save";

	// 资讯总页数
	public static final String CONTENT_ITEM_PAGE_COUNT = "pageCount";
	// 资讯ID
	public static final String CONTENT_ITEM_ID = "content_item_id";
	// 资讯快照
	public static final String CONTENT_ITEM_IMAGE = "content_item_image";
	// 资讯标题
	public static final String CONTENT_ITEM_TITLE = "content_item_title";
	// 资讯Url
	public static final String CONTENT_ITEM_URL = "content_item_url";
	// 资讯摘要
	public static final String CONTENT_ITEM_SUMMARY = "content_item_summary";
	// 资讯获赞数
	public static final String CONTENT_ITEM_PRAISE_NUM = "content_item_praise_num";
	// 资讯浏览数
	public static final String CONTENT_ITEM_VIEW_NUM = "content_item_view_num";
	// 资讯类型
	public static final String CONTENT_ITEM_TYPE = "content_item_type";
	// 资讯模块类型
	public static final String CONTENT_ITEM_MODULE_TYPE = "content_item_module_type";
	
	// 广告图片
	public static final String ADVERTISE_ITEM_IMAGE = "advertise_item_image";
	// 广告提醒
	public static final String ADVERTISE_ITEM_TIP = "advertise_item_tip";
	// 广告Id
	public static final String ADVERTISE_ITEM_ID = "advertise_item_id";
	// 广告描述
	public static final String ADVERTISE_ITEM_DESC = "advertise_item_desc";
	// 广告内容
	public static final String ADVERTISE_ITEM_CONTENT = "advertise_item_content";
	
	

	/** 返回值信息：header */
	public static final String RESULT_JSON_HEADER = "header";
	/** 返回值信息：code */
	public static final String RESULT_JSON_HEADER_CODE = "code";
	/** 返回值信息：body */
	public static final String RESULT_JSON_BODY = "body";

	/** 返回值信息标准：0表示成功 */
	public static final String RESULT_JSON_HEADER_CODE_SUCCESS = "0";
	/** 返回值信息标准：1表示失败 */
	public static final String RESULT_JSON_HEADER_CODE_ERROR = "1";

	/** websocket从服务器端推到客户端的广播常量 */
	public static final String WEB_SOCKET_RESULT = "com.mlz.webSocket.ResultInfo";

	public static final String WEB_SOCKET_CUSTOMER_MESSAGE = "message";

	// **************获取短息内容 开始
	public static final String SMS_IDENTIFY_CODE = "identifyingCode";
	public static final String SMS_MOBILE_NUMBER = "mobile";
	public static final String SMS_ACCOUNT_ID = "accountId";
	public static final String SMS_ID = "id";
	// **************获取短息内容 结束

	// 用户信息：性别 0女 1男
	public static final String USER_SEX_FEMALE = "0";
	public static final String USER_SEX_MALE = "1";

	// 肤质类型 0:neutral,1:dry,2:oily,3:hybrid,4:sensitive
	public static final String USER_SKIN_TYPE_NEUTRAL = "0";
	public static final String USER_SKIN_TYPE_DRY = "1";
	public static final String USER_SKIN_TYPE_OILY = "2";
	public static final String USER_SKIN_TYPE_HYBRID = "3";
	public static final String USER_SKIN_TYPE_SENSITIVE = "4";
	public static final String USER_SKIN_TYPE_UNKNOW = "5";

	// brand 公司ID:Kingdom公司Id为34
	public static final String COMPANY_ID = "34";
//	public static final String COMPANY_TEMP_ID = "21";
	public static final String COMPANY_NAME = "mlizhi4Kingdom";
	
	// 设备类型 : 1Android ，2ios
	public static final String DEVICE_TYPE = "1";

	// *********** url start

	/**
	 * url 请求时间戳
	 */
	public static final String URL_TIMESTAMP = "checkKey";

	/**
	 * Url请求key
	 */
	public static final String URL_KEY = "key";
	/**
	 * 上下文环境
	 */
	// public static final String CONTEXT_PATH =
	// "http://meilizhi.123nat.com/meilizhi/";
	public static final String CONTEXT_PATH = "http://admin.mlizhi.com/meilizhi/";

	// 获取资讯列表
	public static final String URL_CONTENT_LIST_URL = CONTEXT_PATH + "api/customerservice/info";

	// 获取单个资讯的详情内容
	public static final String URL_CONTENT_DETAIL_URL = CONTEXT_PATH + "public/getContentDetail?id=";

	// 登录
	public static final String URL_USER_LOGIN_URL = CONTEXT_PATH + "api/customer/login";

	// 注册
	public static final String URL_USER_REGIST_URL = CONTEXT_PATH + "api/customer/regiest";

	// 验证码修改
	public static final String URL_RESET_PASSWORD_CHECK_CODE = CONTEXT_PATH + "api/customer/checksms";

	// 用户密码修改
	public static final String URL_POST_UPDATE_PASSWORD_URL = CONTEXT_PATH + "api/customer/updatepassword";

	// 获取短信验证码
	public static final String URL_POST_GET_VALID_CODE = CONTEXT_PATH + "api/customer/sendsms";
	
	// 验证手机号是否已经注册
	public static final String URL_CHECK_MOBILE_URL = CONTEXT_PATH + "api/customer/checkmobile";
	
	// 获取短信验证码
	public static final String URL_POST_GET_FORGET_VALID_CODE = CONTEXT_PATH + "api/customer/forgetpassword";
	
	

	// check 短信验证码
	public static final String URL_POST_CHECK_CODE = CONTEXT_PATH + "api/customer/checksms";
	// 设置头像
	public static final String URL_POST_UPDATE_INFO = CONTEXT_PATH + "api/customer/edit";

	// 获取帮助文档
	public static final String URL_POST_SETTING_HELP_INFO = CONTEXT_PATH + "public/publiccommon?companyId="+COMPANY_ID+"&type=";
	public static final String URL_POST_SETTING_HELP_VALUE ="1";

	// 获取内容简介文档
	public static final String URL_POST_SETTING_INTRODUCE_INFO = CONTEXT_PATH + "public/publiccommon?companyId="+COMPANY_ID+"&type=";
	public static final String URL_POST_SETTING_INTRODUCE_VALUE = "3";
	// 获取关于我们文档
	public static final String URL_POST_SETTING_ABOUT_INFO = CONTEXT_PATH + "public/publiccommon?companyId="+COMPANY_ID+"&type=";
	public static final String URL_POST_SETTING_ABOUT_VALUE = "2";
	
	
	// 获取最新版本
	public static final String URL_POST_GET_NEW_VERSION  = CONTEXT_PATH + "api/base/version";
	
	// 保存检测值
	public static final String URL_POST_DETECT_WATER_VALUE = CONTEXT_PATH + "api/customer/savedetection";
	
	// 保存反馈意见
	public static final String URL_POST_SAVE_FEEDBACK = CONTEXT_PATH + "api/customer/savefeedback";
	

}
